package com.gc.server.dao;

import com.gc.server.entity.ApplyEntity;
import com.gc.server.vo.ApplyVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;

import java.util.Date;
import java.util.List;
/**
 * 出差申请Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Mapper
public interface ApplyDao extends BaseDao<ApplyEntity> {

    List<ApplyVo> findVo(ApplyVo vo);

    ApplyVo getVo(Long id);


    List<ApplyVo> findByUserAndDate(Long userId, Date startDate, Date endDate);

    List<ApplyVo> findMyShopUserAndDate(Long topUserId, Long userId, Date startDate, Date endDate);

    List<ApplyVo> findByUserIdsAndDate(List<Long> userIds, Date startDate, Date endDate);

    Integer sumCheck(Long userId);
}
